<div class="tot_login">
	<div class="login">
    <div class="add_mer">
    <a href="<?php echo site_url('merchants/add');?>">Add Merchant</a>
    </div>
    <div class="tot_merchants">

    <?php if($this->session->flashdata('success_message')):?>
    	<div class="success">
    		<?php echo $this->session->flashdata('success_message');?>
    	</div>
    <?php endif; ?>

<?php foreach($rows as $row):?>

<div class="list">
<div class="top_list">
<div class="left_list">
<h2><u><?php echo $row['name']; ?></u></h2>
</div>
<div class="right_list">
<a href="<?php echo site_url("merchants/edit/{$row['id']}");?>">
	<img src="<?php echo base_url('assets/images/edit.png');?>" alt="Edit">
</a>
</div>
</div>
<div class="list_left">
	<p><small>Merchant ID :</small> <?php echo $row['merchant_id']; ?></p>

	<p><small>AWS_ACCESS_KEY_ID :</small><?php echo $row['access_key']; ?></p>

	<p><small>Region :</small><?php echo $row['region']; ?></p>

</div>
<div class="list_right">

	<p><small>MarketPlace ID :</small> <?php echo $row['marketplace_id']; ?></p>	

	<p><small>AWS_SECRET_ACCESS_KEY :</small><?php echo $row['secret_key']; ?></p>

	<p><small>Reports Enabled ? :</small><?php echo strpos('y',$row['reports_enabled']) === 0 ?'Yes':'No'; ?></p>
</div>
<div class="clearfix"></div>



</div>


<?php endforeach; ?>

<div class="clearfix"></div>

<div style="padding:10px 20px 10px 0;text-align:right;">
	<?php echo $this->pagination->create_links(); ?>
</div>

</div>
</div>
</div>